package tgly.bysj;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.TextView;
import android.widget.Toast;

public class Select extends Activity{
	private TextView table1;
	private TextView table2;
	private TextView table3;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		WindowManager.LayoutParams lp = getWindow().getAttributes();
		lp.x=500;
		lp.y=-650;
		setContentView(R.layout.select);
		table1 = (TextView)findViewById(R.id.word_table1);
		table2 = (TextView)findViewById(R.id.word_table2);
		table3 = (TextView)findViewById(R.id.word_table3);
		table1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent intentRef=new Intent();
				intentRef.setClass(Select.this,Study.class);
				startActivity(intentRef);
				Select.this.finish();
			}
		});
		table2.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent intentRef=new Intent();
				intentRef.setClass(Select.this,Collect.class);
				startActivity(intentRef);
				Select.this.finish();
			}
		});
		table3.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent intentRef=new Intent();
				intentRef.setClass(Select.this,Wrong.class);
				startActivity(intentRef);
				Select.this.finish();
			}
		});
	}

}
